package com.zrrd.blog.question.service;

import com.zrrd.blog.api.entities.Question;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zrrd.blog.api.entities.UserInfoREQ;
import com.zrrd.blog.question.req.QuestionUserREQ;
import com.zrrd.blog.util.base.BaseRequset;
import com.zrrd.blog.util.base.Result;

/**
 * <p>
 * 问题信息表 服务类
 * </p>
 *
 * @author chen
 * @since 2023-08-07
 */
public interface IQuestionService extends IService<Question> {

    Result findHotList(BaseRequset<Question> request);
    Result findNewList(BaseRequset<Question> request);
    Result findWaitList(BaseRequset<Question> request);
    Result findListByLabelId(BaseRequset<Question> req, String labelId);
    Result findById(String id);
    Result updateViewCount(String id);
    Result updateOrSave(Question question);
    Result updateStatus(String id,Integer status);
    Result deleteById(String id);
    Result updateThumhup(String id, int count);
    Result findListByUserId(QuestionUserREQ req);
    Result getQuestionTotal();
    boolean updateUserInfo(UserInfoREQ req);
}
